﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Linq;
using System.ServiceProcess;


namespace VGSoftware.FileShutdownService
{
	[RunInstaller(true)]
	public partial class FileShutdownServiceInstaller : Installer
	{
		public FileShutdownServiceInstaller()
		{
			InitializeComponent();

			ServiceProcessInstaller process = new ServiceProcessInstaller();

			process.Account = ServiceAccount.LocalSystem;

			ServiceInstaller serviceAdmin = new ServiceInstaller();

			serviceAdmin.StartType = ServiceStartMode.Automatic;
			serviceAdmin.ServiceName = "File Shutdown Service";
			serviceAdmin.DisplayName = "File Shutdown Service";

			Installers.Add(process);
			Installers.Add(serviceAdmin);
		}
	}
}
